#include <stdio.h>
int main()
{
    int n, len = 0, sum = 0;
    scanf("%d", &n);
    while (n > 0)
    {
        len++;
        sum += n % 10;
        n /= 10;
    }
    printf("%d %d", len, sum);
    return 0;
}